package example;

import framework.Board;
import framework.State;

/**
 * Some initial boards
 * 
 * @author jtumarki, ntibrewa, shuaihan, wesleyk
 * 
 */
public class InitialBoard {

	/**
	 * @return example initial board
	 */
	public static Board createGliderBoard() {

		State[][] initial = new State[10][10];
		for (int i = 0; i < initial.length; i++) {

			for (int j = 0; j < initial[i].length; j++) {

				initial[i][j] = new DeadState();

			}

		}

		initial[0][9] = new AliveState();
		initial[1][9] = new AliveState();
		initial[1][7] = new AliveState();
		initial[3][5] = new AliveState();
		initial[3][6] = new AliveState();
		initial[4][5] = new AliveState();
		initial[4][6] = new AliveState();
		initial[5][5] = new AliveState();
		initial[5][6] = new AliveState();
		initial[6][7] = new AliveState();
		initial[6][9] = new AliveState();
		initial[7][9] = new AliveState();

		return new Board(10, 10, initial);
	}

}
